package org.demo.entity;

/**
 * 
 * @desc: 符号表
 *
 * @className: SymbolTable.java
 * @author: fuchen
 * @date: 2020年10月26日
 */
public class SymbolTable {
	
	//单词对应的机内码  1000x对应关键字 2000x对应..
	private int id;	
	//单词本身
	private String word;
	
	public SymbolTable() {
	}
	

	public SymbolTable(int id, String word) {
		this.id = id;
		this.word = word;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word;
	}


	@Override
	public String toString() {
		return this.id + "-" + this.word;
	}
}
